package com.example.demo.Service;

import com.example.demo.Entity.Userinfo;
import com.example.demo.Mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    public UserMapper userMapper;
    public  int insert(Userinfo userinfo){
        return userMapper.add(userinfo);
    }
    public Userinfo selectByName(String username){
        return userMapper.SelectByName(username);
    }
}
